<?php
echo 123;exit; 
$appid = 98;
$dblink = getdblink_tttj();
exec_db_ps("LOCK TABLE tttj.uid_pool WRITE",$dblink);

for ($i=0;$i<10;$i++)
{
	$sql = "select uid from tttj.uid_pool order by rand() limit 1";
	$id_info = getonerecord_ps($sql,$dblink);
	$uid = (int)$id_info['uid'];
	$sql = "delete from tttj.uid_pool where uid=$uid";
	exec_db_ps($sql,$dblink);
	
	$time = time();
	$pt = mt_rand(1,2);
	if ($pt == 1)
	{
		$channel = 'gf';
	} else {
		$channel = 'jsb';
	}
	
	$sql = "insert into tttj.userinfo (id,channel,pt,ontime,last_login,regtype,appid) values ($uid,'$channel','$pt',$time,$time,2,'$appid')";
	exec_db($sql);
}	

exec_db_ps("unlock tables",$dblink);
mysqli_close($dblink);
?>